home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / snapTogetherToolProperties.m < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.0 KB  |  73 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Description:
  19. //        Creates the controls for the Snap Together Tool property sheet.
  20. //
  21. //  Input Arguments:
  22. //        None.
  23. //
  24. //  Return Value:
  25. //        None.
  26. //
  27. global proc snapTogetherToolProperties()
  28. {
  29.     string $parent = `toolPropertyWindow -query -location`;
  30.  
  31.     setUITemplate -pushTemplate OptionsTemplate;
  32.  
  33.     setParent $parent;
  34.  
  35.     columnLayout snapTogetherTool;
  36.         frameLayout
  37.             -width 400
  38.             -collapsable true
  39.             -collapse false
  40.             -label "Snap Together Tool Settings"
  41.             snapTogetherToolFrame;
  42.  
  43.             columnLayout snapTogetherToolOptions;
  44.  
  45.                 $parent = `setParent -query`;
  46.                 separator -style "none";
  47.  
  48.                 radioCollection moveRadioCollection;
  49.  
  50.                 radioButton
  51.                     -label "Move and rotate object(s)"
  52.                     -collection moveRadioCollection
  53.                     moveAndRotateBtn;
  54.  
  55.                 radioButton
  56.                     -label "Move object(s) only"
  57.                     -collection moveRadioCollection
  58.                     moveOnlyBtn;
  59.  
  60.                 checkBoxGrp 
  61.                     -numberOfCheckBoxes 1
  62.                     -label  "" 
  63.                     -label1 "Snap to Polygon Face"
  64.                     snapTogetherToolSnapPolygonFace;
  65.  
  66.             setParent ..;
  67.         setParent ..;
  68.     setParent ..;
  69.  
  70.     setUITemplate -popTemplate;
  71.  
  72. }    //    snapTogetherToolProperties()
  73.